import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class DoSome {
    public static void main(String[] args) {
        Properties p = new Properties();
        try {
            p.load(new FileInputStream("qwe.properties"));
            System.out.println("user: " + p.getProperty("user"));
            System.out.println("password: " + p.getProperty("password"));

        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
